package cuishifeng.blog.helper;

import org.apache.commons.io.FileUtils;

import java.io.File;

/**
 * @author cuishifeng
 * Created on 2021-01-31
 */
public class FileHelper {


    public static File getFile(String fileName) {
        return FileUtils.getFile(fileName);
    }


    public static File[] getAllFile(String directoryName) {
        File directory = FileUtils.getFile(directoryName);
        return directory.listFiles();
    }
}
